import command from 'eslint-plugin-command/config'
import { FlatConfig, OptionsOverrides } from '../types'

export default async ({ overrides = {} }: OptionsOverrides = {}): Promise<FlatConfig[]> => [
  {
    ...command(),
    name: 'vill-v/command',
    rules: {
      'command/command': 'error',
      ...overrides,
    },
  },
]
